package com.example.demo.service;

import com.example.demo.entity.NoteComment;
import com.example.demo.entity.NoteCreate;
import com.example.demo.vo.ViewNoteCommentInfo;
import com.example.demo.vo.ViewNoteCreateInfo;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface NoteCommentService {
    PageInfo<ViewNoteCommentInfo> findNoteCommentInfo(Integer pageNum, Integer pageSize);

    //pageNum:当前是第几页   pageSize：每一页有多少条数据
    PageInfo<NoteComment> findNoteCommentPages(Integer pageNum, Integer pageSize);

    ViewNoteCommentInfo findNoteCommentById(Integer note_comment_id);

    List<NoteComment> findNoteCommentAll();

    NoteComment findNoteCommentDyId(Integer note_comment_id);

    Integer insertNoteComment(NoteComment noteComment);

    Integer updateNoteComment(NoteComment noteComment);

    Integer deleteNoteComment(Integer note_comment_id);





    //与用户表的用户名、头像相关联，且根据笔记id查找，按点赞量排序
    PageInfo<ViewNoteCommentInfo> findNoteCommentInfonoteid(Integer note_create_id);

    //点击举报按钮将会把评论状态从正常修改为被举报
    Integer updateStatus(Integer note_comment_id);

    //点赞
    Integer likeComment(Integer note_comment_id);

    //取消点赞
    Integer unlikeComment(Integer note_comment_id);

    //根据笔记id计数
    Integer countcomment(Integer note_create_id);
}

